Skip to content

Stamp the tag-derived version into published assemblies#17

Merged
StuartMeeks merged 1 commit into
masterfrom
chore/release-stamps-version
May 30, 2026
Merged

Stamp the tag-derived version into published assemblies#17
StuartMeeks merged 1 commit into
masterfrom
chore/release-stamps-version

Conversation

@StuartMeeks

@StuartMeeks StuartMeeks commented May 30, 2026

Copy link
Copy Markdown
Owner

Summary

  • Pre-flight for cutting the first release tag.
  • release.yml already derives the version from the git tag and passes it to vpk pack, but dotnet publish ran with no -p:Version, so the assembly would stamp as 1.0.0 (the SDK default) and the About expander would lie about which build the user is running.
  • One-line fix: pass -p:Version=${{ steps.meta.outputs.version }} to dotnet publish. MSBuild handles 0.1.0-alpha.1 natively (numeric prefix → AssemblyVersion/FileVersion; full string → InformationalVersion, which is what the About page reads).

Test plan

  • Workflow file is the only change; no build impact on CI.
  • After merge, cutting v0.1.0-alpha.1 should produce a Velopack package whose published exe reports 0.1.0-alpha.1 to the About page.

🤖 Generated with Claude Code

release.yml derives the version from the git tag and passes it to vpk
pack, but the dotnet publish step ran without -p:Version, so the
in-process assembly stamps as 1.0.0 (the SDK default) and the About
page would lie about which build the user is running.

MSBuild handles "0.1.0-alpha.1"-style versions natively: it derives
AssemblyVersion/FileVersion from the numeric prefix and uses the full
string verbatim for InformationalVersion, which is what the About page
reads.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@StuartMeeks StuartMeeks merged commit a0a6191 into master May 30, 2026
4 checks passed
@StuartMeeks StuartMeeks deleted the chore/release-stamps-version branch May 30, 2026 01:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant